
#------------------------------------------------------------
# top-level cloudwire module

require 'logger'

module Cloudwire
	CLOUDWIRE_VERSION = '0.1'

	# gets the version of cloudwire
	def self.version
		return CLOUDWIRE_VERSION
	end

	def self.logger
		unless defined? @logger
			@logger = Logger.new(STDOUT)
			@logger.level = Logger::INFO
		end
		@logger
	end

	def self.debug
		unless defined? @logger
			@logger = Logger.new(STDOUT)
		end
		@logger.level = Logger::DEBUG
	end

	# create a top level error
	class CloudwireError < StandardError
	end

end
